<!-- IF S_SET_SETS -->
	{L_SETS_NAME} - {AF_NAME}
	<table cellspacing="1">
	<thead>
	<tr>
		<th>{L_FIELD_NAME}</th>
		<th>{L_COUNT}</th>
		<th>{L_REQUIRED}</th>
		<th>{L_ORDER}</th>
		<th>{L_FIELD_NAME}</th>
		<th>{L_DELETE} [<a href="#" onclick="marklist('acp_board', 'af_delete', true); return false;">+</a>/<a href="#" onclick="marklist('acp_board', 'af_delete', false); return false;">-</a>]</th>
	</tr>
	</thead>
	<tbody>
	<!-- BEGIN sets -->
		<!-- IF sets.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
			<td><input type="text" name="af_name[{sets.ID}]" size="16" maxlength="32" value="{sets.NAME}" /></td>
			<td><input type="text" size="1" maxlength="1" name="af_count[{sets.ID}]" value="{sets.COUNT}" title="" /></td>
			<td><input type="text" size="1" maxlength="1" name="af_required[{sets.ID}]" value="{sets.REQUIRED}" title="" /></td>
			<td><input type="text" name="af_order[{sets.ID}]" size="3" maxlength="3" value="{sets.ORDER}" title="" /></td>
			<td>
				<!-- IF sets.NAME -->
				<u>{sets.VALUE}</u>
				<!-- ELSE -->
				{AF_SELECTS}
				<!-- ENDIF -->
			</td>
			<td>
				<!-- IF sets.NAME -->
				<input type="checkbox" name="af_delete[{sets.ID}]" value="1" />
				<!-- ELSE -->
				<b>{L_ADD}</b>
				<!-- ENDIF -->
			</td>
		</tr>
	<!-- END sets -->
	</tbody>
	</table>
<!-- ENDIF -->

<!-- IF S_VIEW_ADDFIELDS -->
	<table cellspacing="1">
	<thead>
	<tr>
		<th width="35%">{L_SET_NAME}</th>
		<th>{L_VIEW_SETS}</th>
		<th>{L_COPY_SETS}</th>
		<th>{L_DELETE} [<a href="#" onclick="marklist('acp_board', 'af_delete', true); return false;">+</a>/<a href="#" onclick="marklist('acp_board', 'af_delete', false); return false;">-</a>]</th>
	</tr>
	</thead>
	<tbody>
	<!-- BEGIN addfields -->
		<!-- IF addfields.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
			<td><input type="text" name="af_name[{addfields.COUNT}]" size="32" maxlength="64" value="{addfields.NAME}" /></td>
			<td><!-- IF addfields.NAME --><a href="{addfields.A_VIEW_SETS}">{L_VIEW_SETS}</a><!-- ENDIF --></td>
			<td><!-- IF addfields.NAME --><a href="{addfields.A_COPY_SETS}" title="{L_COPY_SETS_EXPLAIN}">{L_COPY_SETS}</a><!-- ENDIF --></td>
			<td>
				<!-- IF addfields.NAME -->
				<input type="checkbox" name="af_delete[{addfields.COUNT}]" value="1" />
				<!-- ELSE -->
				<b>{L_ADD}</b>
				<!-- ENDIF -->
			</td>
		</tr>
		<!-- IF addfields.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
			<td>{L_ADDFIELD_SUBJECT}</td>
			<td colspan="3"><input title="{L_ADDFIELD_SUBJECT_EXPLAIN}" type="text" name="af_subject[{addfields.COUNT}]" style="width:100%;" maxlength="255" value="{addfields.SUBJECT}" /></td>
		</tr>
		<!-- IF addfields.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
			<td>{L_ADDFIELD_DESCR}</td>
			<td colspan="3"><textarea title="{L_ADDFIELD_DESCR_EXPLAIN}" name="af_descr[{addfields.COUNT}]" style="width:100%;height:50px;">{addfields.DESCR}</textarea></td>
		</tr>
	<!-- END addfields -->
	</tbody>
	</table>
<!-- ENDIF -->

{S_HIDDEN_FIELDS}
